//
//  SYShiXunHeaderView.h
//  SanYiTeaching
//
//  Created by 郑浩然 on 2019/4/19.
//  Copyright © 2019年 SanYi. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SYBiaoTiView.h"


typedef NS_ENUM(NSInteger, SYShiXunHeaderViewType) {
    SYShiXunHeaderViewTypeDefault, //默认
    SYShiXunHeaderViewTypeXiuGai, //修改
    SYShiXunHeaderViewTypeDetails, //详情
    SYShiXunHeaderViewTypeJiaoYanWeiWanCheng //教研进行中，显示修改，提交成果
};


typedef NS_ENUM(NSInteger, SYShiXunHeaderSelectType) {
    SYShiXunHeaderSelectTypXiuGai, //修改
    SYShiXunHeaderSelectTypeTiJiaoChengGuo, //提交成果
    SYShiXunHeaderSelectTypeGuanLiChengYuan, //管理成员
    SYShiXunHeaderSelectTypeAddChengYuan //添加成员
};

typedef void(^SYShiXunHeaderViewBlock)(SYShiXunHeaderSelectType type);


@interface SYShiXunHeaderView : UIView

@property (assign, nonatomic) NSInteger index;

/**
 传入类型

 @param type 类型
 @param index 头部状态的展示， 0 八个
 */
- (void)shixunHeaderViewType:(SYShiXunHeaderViewType)type index:(NSInteger)index;
@property (strong, nonatomic) UIButton *tijiaoChengGuoBtn;//提交成果
@property (strong, nonatomic) UIView *biaoBgView;//占位图view
@property (strong, nonatomic) SYTopView *topView;
@property (strong, nonatomic) SYBiaoTiView *biaoView;//功能标题
@property (assign, nonatomic) SYShiXunHeaderViewType type;//
@property (copy, nonatomic) SYShiXunHeaderViewBlock block;
@end
